import { Navigate } from "react-router-dom";


import Home from "../views/home";
import Detail from "../views/detail";
import Entire from "../views/entire"; 
import { Demo } from "../views/demo";
    
const routers = [
    {
        path: "/",
        element:<Navigate to={"/home"}/>
    },
    {
        path: "/home",
        element:<Home></Home>
    },
    {
        path: "/detail",
        element:<Detail></Detail>
    },
    {
        path: "/entire",
        element:<Entire></Entire>
    },
    {
        path: '/demo',
        element:<Demo></Demo>
    }
]

export default routers;